<a href='https://github.com/angular/angular.js/edit/v1.5.x/docs/content/error/$location/nostate.ngdoc?message=docs(error%2Fnostate)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $location:nostate
  <div><span class='hint'>History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API">History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when the <a href="api/ng/service/$location#state">$location.state</a> method is used when <a href="api/ng/provider/$locationProvider#html5Mode">$locationProvider.html5Mode</a> is not turned on or the browser used doesn&#39;t support the HTML5 History API (for example, IE9 or Android 2.3).</p>
<p>To avoid this error, either drop support for those older browsers or avoid using this method.</p>

</div>


